package com.sc.nft.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.dao.RushBuyUserDao;
import com.sc.nft.entity.BuyFirstUser;
import com.sc.nft.entity.RushBuyUser;
import com.sc.nft.entity.vo.BuyFirstUserListVO;
import com.sc.nft.entity.vo.RushBuyUserListVO;
import com.sc.nft.service.RushBuyUserService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 服务接口实现
 *
 * @author Sun
 * @since 2022-08-19 11:31:30
 * @description 由 Mybatisplus Code Generator 创建
 */
@Slf4j
@RequiredArgsConstructor
@Service
public class RushBuyUserServiceImpl implements RushBuyUserService {
    private final RushBuyUserDao rushBuyUserDao;

    @Override
    public Page<RushBuyUserListVO> rushBuyUserList(Long productId, String userTel, int pageNo, int pageSize) {
        return rushBuyUserDao.rushBuyUserList(productId,userTel,pageNo,pageSize);
    }

    @Override
    public RushBuyUser selectByProductIdAndUserId(Long productId, Long userId) {
        return rushBuyUserDao.selectByProductIdAndUserId(productId,userId);
    }
}